export class RectRange {
    constructor(x1: number, y1: number, x2: number, y2: number) {
        this.x1 = Math.min(x1, x2);
        this.y1 = Math.min(y1, y2);
        this.x2 = Math.max(x1, x2);
        this.y2 = Math.max(y1, y2);
    }
    x1: number;
    y1: number;
    x2: number;
    y2: number;
    Clone(): RectRange {
        return new RectRange(this.x1, this.y1, this.x2, this.y2);
    }
}